<?php
namespace app\admin\controller;
use app\admin\controller\Common;
use think\Db;
use app\common\model\Blh as BlhModel;


class Dev extends Common{

       public function index(){
        $blh = new BlhModel();
        //$res = $blh->getNotics();//查询通知消息
        //   dump($res);
        //   echo '<hr/>';
        //$res = $blh->doNotics(1);//删除通知消息
        //$res = $blh->getCategorys();//【1.3】查询分类列表
        //$res = $blh->getBrandList();//【1.4】查询品牌列表
           dump('查询商品信息');
        $res = $blh->getGoodsId();//【1.6】查询品牌列表
           dump($res);
           if($res['result']!==rue){
               $ids=explode(',',$res['data']['ids']);
               dump($ids);
               foreach($ids as $gk => $gv){
                   $res = $blh->getGoodInfo($gv);//【1.6】查询商品信息
                   dump($res);
               }
           }
        ddump('调试结束');
        //$res = $blh->getGoodInfo(27);//【1.6】查询商品信息
           ddump($res);
        //$res = $blh->getRechargeTemplate(1);//【1.1】查询直充参数模板
        //$res = $blh->getExpressList();//【1.1】查询直充参数模板
        //$res = $blh->getProvince();//【1.1】查询直充参数模板
        //$res = $blh->getCity(1);//【1.1】查询直充参数模板
        //$res = $blh->getCounty(2800);//【1.1】查询直充参数模板
        //$res = $blh->getTown(55818);//【1.1】查询直充参数模板
        //$res = $blh->getAreaName('55818');//【1.1】查询直充参数模板
        //$res = $blh->getValid('48205,52493,110');//【1.1】查询直充参数模板
        //$res = $blh->getValid('4,48205,52493');//【1.1】查询直充参数模板
        //$product=[['itemId'=>64,'number'=>10],['itemId'=>65,'number'=>8]];
        //$product=[];
        //$product=[['itemId'=>64,'number'=>10]];
        //$location=['province'=>4,'city'=>48205,'county'=>52493,'town'=>0];
        //$itemIds='64,63,55';
        //$res = $blh->getStoreAsNum($product,$location);//【1.1】查询直充参数模板
        //$res = $blh->getRegionStore($itemIds,$location);//【1.1】查询直充参数模板
        ddump($res);
        //$res = $blh->li91getnotice();
        //echo '
    }
}
